package com.yuan.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "t_comment")
public class CommentEntity {


    @TableId(type = IdType.AUTO)
    private Integer id;

    //评论用户
    private Integer userId;

    // 评论是给帖子(1)还是评论(2)
    private Integer entityType;

    private Integer entityId;//帖子id或者评论id

    //评论的帖子id
    private Integer targetId;

    private String content;

    private Integer status;

    private Date createTime;

}
